class BaseListResponse<T> {
  T? rows;
  int? code;
  String? msg;
  int? total;

  BaseListResponse({
    required this.rows,
    required this.code,
    required this.msg,
    required this.total,
  });

  factory BaseListResponse.fromJson(Map<String, dynamic> json) =>
      BaseListResponse(
        rows: json["rows"],
        code: json["code"],
        msg: json["msg"],
        total: json["total"],
      );

  Map<String, dynamic> toJson() => {
        "rows": rows,
        "code": code,
        "msg": msg,
        "total": total,
      };
}
